/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.diagram.sequence.preference;

import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferenceConverter;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.RGB;

import com.cea.papyrus.core.preference.PreferenceConstants;

/**
 * @author ymortier <yann.mortier@obeo.fr>
 */
public class SequenceDiagramPreferenceConstants {

    // Interaction
    /** Background color for interactions. */
    public static final String P_INTERACTION_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.Interaction.backGroundColor";

    /** Border color for interactions. */
    public static final String P_INTERACTION_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.Interaction.borderColor";

    /** Font color for interactions. */
    public static final String P_INTERACTION_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.Interaction.fontColor";

    /** Font for interactions. */
    public static final String P_INTERACTION_FONT =
            "SequenceDiagramPreferenceConstants.Interaction.font";

    // InteractionFragment
    /** Background color for interactionfragments. */
    public static final String P_INTERACTIONFRAGMENT_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.InteractionFragment.backGroundColor";

    /** Border color for interactionfragments. */
    public static final String P_INTERACTIONFRAGMENT_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.InteractionFragment.borderColor";

    /** Font color for interactionfragments. */
    public static final String P_INTERACTIONFRAGMENT_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.InteractionFragment.fontColor";

    /** Font for interactionfragments. */
    public static final String P_INTERACTIONFRAGMENT_FONT =
            "SequenceDiagramPreferenceConstants.InteractionFragment.font";

    // Lifeline
    /** Background color for lifelines. */
    public static final String P_LIFELINE_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.Lifeline.backGroundColor";

    /** Border color for lifelines. */
    public static final String P_LIFELINE_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.Lifeline.borderColor";

    /** Font color for lifelines. */
    public static final String P_LIFELINE_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.Lifeline.fontColor";

    /** Font for lifelines. */
    public static final String P_LIFELINE_FONT = "SequenceDiagramPreferenceConstants.Lifeline.font";

    // InteractionUse
    /** Background color for interactionuses. */
    public static final String P_INTERACTIONUSE_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.InteractionUse.backGroundColor";

    /** Border color for interactionuses. */
    public static final String P_INTERACTIONUSE_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.InteractionUse.borderColor";

    /** Font color for interactionuses. */
    public static final String P_INTERACTIONUSE_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.InteractionUse.fontColor";

    /** Font for interactionuses. */
    public static final String P_INTERACTIONUSE_FONT =
            "SequenceDiagramPreferenceConstants.InteractionUse.font";

    // Gate
    /** Background color for gates. */
    public static final String P_GATE_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.Gate.backGroundColor";

    /** Border color for gates. */
    public static final String P_GATE_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.Gate.borderColor";

    /** Font color for gates. */
    public static final String P_GATE_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.Gate.fontColor";

    /** Font for gates. */
    public static final String P_GATE_FONT = "SequenceDiagramPreferenceConstants.Gate.font";

    // OccurrenceSpecification
    /** Background color for occurrencespecifications. */
    public static final String P_OCCURRENCESPECIFICATION_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.OccurrenceSpecification.backGroundColor";

    /** Border color for occurrencespecifications. */
    public static final String P_OCCURRENCESPECIFICATION_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.OccurrenceSpecification.borderColor";

    /** Font color for occurrencespecifications. */
    public static final String P_OCCURRENCESPECIFICATION_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.OccurrenceSpecification.fontColor";

    /** Font for occurrencespecifications. */
    public static final String P_OCCURRENCESPECIFICATION_FONT =
            "SequenceDiagramPreferenceConstants.OccurrenceSpecification.font";

    // InteractionConstraint
    /** Background color for interactionconstraints. */
    public static final String P_INTERACTIONCONSTRAINT_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.InteractionConstraint.backGroundColor";

    /** Border color for interactionconstraints. */
    public static final String P_INTERACTIONCONSTRAINT_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.InteractionConstraint.borderColor";

    /** Font color for interactionconstraints. */
    public static final String P_INTERACTIONCONSTRAINT_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.InteractionConstraint.fontColor";

    /** Font for interactionconstraints. */
    public static final String P_INTERACTIONCONSTRAINT_FONT =
            "SequenceDiagramPreferenceConstants.InteractionConstraint.font";

    // ExecutionSpecification
    /** Background color for executionspecifications. */
    public static final String P_EXECUTIONSPECIFICATION_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.ExecutionSpecification.backGroundColor";

    /** Border color for executionspecifications. */
    public static final String P_EXECUTIONSPECIFICATION_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.ExecutionSpecification.borderColor";

    /** Font color for executionspecifications. */
    public static final String P_EXECUTIONSPECIFICATION_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.ExecutionSpecification.fontColor";

    /** Font for executionspecifications. */
    public static final String P_EXECUTIONSPECIFICATION_FONT =
            "SequenceDiagramPreferenceConstants.ExecutionSpecification.font";

    // StateInvariant
    /** Background color for stateinvariants. */
    public static final String P_STATEINVARIANT_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.StateInvariant.backGroundColor";

    /** Border color for stateinvariants. */
    public static final String P_STATEINVARIANT_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.StateInvariant.borderColor";

    /** Font color for stateinvariants. */
    public static final String P_STATEINVARIANT_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.StateInvariant.fontColor";

    /** Font for stateinvariants. */
    public static final String P_STATEINVARIANT_FONT =
            "SequenceDiagramPreferenceConstants.StateInvariant.font";

    // MessageOccurrenceSpecification
    /** Background color for messageoccurrencespecifications. */
    public static final String P_MESSAGEOCCURRENCESPECIFICATION_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.MessageOccurrenceSpecification.backGroundColor";

    /** Border color for messageoccurrencespecifications. */
    public static final String P_MESSAGEOCCURRENCESPECIFICATION_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.MessageOccurrenceSpecification.borderColor";

    /** Font color for messageoccurrencespecifications. */
    public static final String P_MESSAGEOCCURRENCESPECIFICATION_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.MessageOccurrenceSpecification.fontColor";

    /** Font for messageoccurrencespecifications. */
    public static final String P_MESSAGEOCCURRENCESPECIFICATION_FONT =
            "SequenceDiagramPreferenceConstants.MessageOccurrenceSpecification.font";

    // ExecutionOccurrenceSpecification
    /** Background color for executionoccurrencespecifications. */
    public static final String P_EXECUTIONOCCURRENCESPECIFICATION_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.ExecutionOccurrenceSpecification.backGroundColor";

    /** Border color for executionoccurrencespecifications. */
    public static final String P_EXECUTIONOCCURRENCESPECIFICATION_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.ExecutionOccurrenceSpecification.borderColor";

    /** Font color for executionoccurrencespecifications. */
    public static final String P_EXECUTIONOCCURRENCESPECIFICATION_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.ExecutionOccurrenceSpecification.fontColor";

    /** Font for executionoccurrencespecifications. */
    public static final String P_EXECUTIONOCCURRENCESPECIFICATION_FONT =
            "SequenceDiagramPreferenceConstants.ExecutionOccurrenceSpecification.font";

    // CombinedFragment
    /** Background color for combinedfragments. */
    public static final String P_COMBINEDFRAGMENT_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.CombinedFragment.backGroundColor";

    /** Border color for combinedfragments. */
    public static final String P_COMBINEDFRAGMENT_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.CombinedFragment.borderColor";

    /** Font color for combinedfragments. */
    public static final String P_COMBINEDFRAGMENT_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.CombinedFragment.fontColor";

    /** Font for combinedfragments. */
    public static final String P_COMBINEDFRAGMENT_FONT =
            "SequenceDiagramPreferenceConstants.CombinedFragment.font";

    // Continuation
    /** Background color for continuations. */
    public static final String P_CONTINUATION_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.Continuation.backGroundColor";

    /** Border color for continuations. */
    public static final String P_CONTINUATION_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.Continuation.borderColor";

    /** Font color for continuations. */
    public static final String P_CONTINUATION_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.Continuation.fontColor";

    /** Font for continuations. */
    public static final String P_CONTINUATION_FONT =
            "SequenceDiagramPreferenceConstants.Continuation.font";

    // ConsiderIgnoreFragment
    /** Background color for considerignorefragments. */
    public static final String P_CONSIDERIGNOREFRAGMENT_BACKGROUNDCOLOR =
            "SequenceDiagramPreferenceConstants.ConsiderIgnoreFragment.backGroundColor";

    /** Border color for considerignorefragments. */
    public static final String P_CONSIDERIGNOREFRAGMENT_BORDERCOLOR =
            "SequenceDiagramPreferenceConstants.ConsiderIgnoreFragment.borderColor";

    /** Font color for considerignorefragments. */
    public static final String P_CONSIDERIGNOREFRAGMENT_FONTCOLOR =
            "SequenceDiagramPreferenceConstants.ConsiderIgnoreFragment.fontColor";

    /** Font for considerignorefragments. */
    public static final String P_CONSIDERIGNOREFRAGMENT_FONT =
            "SequenceDiagramPreferenceConstants.ConsiderIgnoreFragment.font";

    /**
     * Gets the preference interaction background color.
     * 
     * @param store
     *            the store
     * @return the preference interaction background color
     */
    public static RGB getPreferenceInteractionBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTION_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference interaction border color.
     * 
     * @param store
     *            the store
     * @return the preference interaction border color
     */
    public static RGB getPreferenceInteractionBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTION_BORDERCOLOR);
    }

    /**
     * Gets the preference interaction font color.
     * 
     * @param store
     *            the store
     * @return the preference interaction font color
     */
    public static RGB getPreferenceInteractionFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTION_FONTCOLOR);
    }

    /**
     * Gets the preference interaction font.
     * 
     * @param store
     *            the store
     * @return the preference interaction font
     */
    public static FontData[] getPreferenceInteractionFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_INTERACTION_FONT);
    }

    /**
     * Gets the preference interactionfragment background color.
     * 
     * @param store
     *            the store
     * @return the preference interactionfragment background color
     */
    public static RGB getPreferenceInteractionFragmentBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTIONFRAGMENT_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference interactionfragment border color.
     * 
     * @param store
     *            the store
     * @return the preference interactionfragment border color
     */
    public static RGB getPreferenceInteractionFragmentBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTIONFRAGMENT_BORDERCOLOR);
    }

    /**
     * Gets the preference interactionfragment font color.
     * 
     * @param store
     *            the store
     * @return the preference interactionfragment font color
     */
    public static RGB getPreferenceInteractionFragmentFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTIONFRAGMENT_FONTCOLOR);
    }

    /**
     * Gets the preference interactionfragment font.
     * 
     * @param store
     *            the store
     * @return the preference interactionfragment font
     */
    public static FontData[] getPreferenceInteractionFragmentFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_INTERACTIONFRAGMENT_FONT);
    }

    /**
     * Gets the preference lifeline background color.
     * 
     * @param store
     *            the store
     * @return the preference lifeline background color
     */
    public static RGB getPreferenceLifelineBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_LIFELINE_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference lifeline border color.
     * 
     * @param store
     *            the store
     * @return the preference lifeline border color
     */
    public static RGB getPreferenceLifelineBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_LIFELINE_BORDERCOLOR);
    }

    /**
     * Gets the preference lifeline font color.
     * 
     * @param store
     *            the store
     * @return the preference lifeline font color
     */
    public static RGB getPreferenceLifelineFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_LIFELINE_FONTCOLOR);
    }

    /**
     * Gets the preference lifeline font.
     * 
     * @param store
     *            the store
     * @return the preference lifeline font
     */
    public static FontData[] getPreferenceLifelineFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_LIFELINE_FONT);
    }

    /**
     * Gets the preference interactionuse background color.
     * 
     * @param store
     *            the store
     * @return the preference interactionuse background color
     */
    public static RGB getPreferenceInteractionUseBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTIONUSE_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference interactionuse border color.
     * 
     * @param store
     *            the store
     * @return the preference interactionuse border color
     */
    public static RGB getPreferenceInteractionUseBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTIONUSE_BORDERCOLOR);
    }

    /**
     * Gets the preference interactionuse font color.
     * 
     * @param store
     *            the store
     * @return the preference interactionuse font color
     */
    public static RGB getPreferenceInteractionUseFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTIONUSE_FONTCOLOR);
    }

    /**
     * Gets the preference interactionuse font.
     * 
     * @param store
     *            the store
     * @return the preference interactionuse font
     */
    public static FontData[] getPreferenceInteractionUseFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_INTERACTIONUSE_FONT);
    }

    /**
     * Gets the preference gate background color.
     * 
     * @param store
     *            the store
     * @return the preference gate background color
     */
    public static RGB getPreferenceGateBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_GATE_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference gate border color.
     * 
     * @param store
     *            the store
     * @return the preference gate border color
     */
    public static RGB getPreferenceGateBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_GATE_BORDERCOLOR);
    }

    /**
     * Gets the preference gate font color.
     * 
     * @param store
     *            the store
     * @return the preference gate font color
     */
    public static RGB getPreferenceGateFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_GATE_FONTCOLOR);
    }

    /**
     * Gets the preference gate font.
     * 
     * @param store
     *            the store
     * @return the preference gate font
     */
    public static FontData[] getPreferenceGateFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_GATE_FONT);
    }

    /**
     * Gets the preference occurrencespecification background color.
     * 
     * @param store
     *            the store
     * @return the preference occurrencespecification background color
     */
    public static RGB getPreferenceOccurrenceSpecificationBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_OCCURRENCESPECIFICATION_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference occurrencespecification border color.
     * 
     * @param store
     *            the store
     * @return the preference occurrencespecification border color
     */
    public static RGB getPreferenceOccurrenceSpecificationBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_OCCURRENCESPECIFICATION_BORDERCOLOR);
    }

    /**
     * Gets the preference occurrencespecification font color.
     * 
     * @param store
     *            the store
     * @return the preference occurrencespecification font color
     */
    public static RGB getPreferenceOccurrenceSpecificationFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_OCCURRENCESPECIFICATION_FONTCOLOR);
    }

    /**
     * Gets the preference occurrencespecification font.
     * 
     * @param store
     *            the store
     * @return the preference occurrencespecification font
     */
    public static FontData[] getPreferenceOccurrenceSpecificationFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_OCCURRENCESPECIFICATION_FONT);
    }

    /**
     * Gets the preference interactionconstraint background color.
     * 
     * @param store
     *            the store
     * @return the preference interactionconstraint background color
     */
    public static RGB getPreferenceInteractionConstraintBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTIONCONSTRAINT_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference interactionconstraint border color.
     * 
     * @param store
     *            the store
     * @return the preference interactionconstraint border color
     */
    public static RGB getPreferenceInteractionConstraintBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTIONCONSTRAINT_BORDERCOLOR);
    }

    /**
     * Gets the preference interactionconstraint font color.
     * 
     * @param store
     *            the store
     * @return the preference interactionconstraint font color
     */
    public static RGB getPreferenceInteractionConstraintFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_INTERACTIONCONSTRAINT_FONTCOLOR);
    }

    /**
     * Gets the preference interactionconstraint font.
     * 
     * @param store
     *            the store
     * @return the preference interactionconstraint font
     */
    public static FontData[] getPreferenceInteractionConstraintFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_INTERACTIONCONSTRAINT_FONT);
    }

    /**
     * Gets the preference executionspecification background color.
     * 
     * @param store
     *            the store
     * @return the preference executionspecification background color
     */
    public static RGB getPreferenceExecutionSpecificationBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_EXECUTIONSPECIFICATION_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference executionspecification border color.
     * 
     * @param store
     *            the store
     * @return the preference executionspecification border color
     */
    public static RGB getPreferenceExecutionSpecificationBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_EXECUTIONSPECIFICATION_BORDERCOLOR);
    }

    /**
     * Gets the preference executionspecification font color.
     * 
     * @param store
     *            the store
     * @return the preference executionspecification font color
     */
    public static RGB getPreferenceExecutionSpecificationFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_EXECUTIONSPECIFICATION_FONTCOLOR);
    }

    /**
     * Gets the preference executionspecification font.
     * 
     * @param store
     *            the store
     * @return the preference executionspecification font
     */
    public static FontData[] getPreferenceExecutionSpecificationFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_EXECUTIONSPECIFICATION_FONT);
    }

    /**
     * Gets the preference stateinvariant background color.
     * 
     * @param store
     *            the store
     * @return the preference stateinvariant background color
     */
    public static RGB getPreferenceStateInvariantBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_STATEINVARIANT_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference stateinvariant border color.
     * 
     * @param store
     *            the store
     * @return the preference stateinvariant border color
     */
    public static RGB getPreferenceStateInvariantBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_STATEINVARIANT_BORDERCOLOR);
    }

    /**
     * Gets the preference stateinvariant font color.
     * 
     * @param store
     *            the store
     * @return the preference stateinvariant font color
     */
    public static RGB getPreferenceStateInvariantFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_STATEINVARIANT_FONTCOLOR);
    }

    /**
     * Gets the preference stateinvariant font.
     * 
     * @param store
     *            the store
     * @return the preference stateinvariant font
     */
    public static FontData[] getPreferenceStateInvariantFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_STATEINVARIANT_FONT);
    }

    /**
     * Gets the preference messageoccurrencespecification background color.
     * 
     * @param store
     *            the store
     * @return the preference messageoccurrencespecification background color
     */
    public static RGB getPreferenceMessageOccurrenceSpecificationBackgroundColor(
            IPreferenceStore store) {
        return PreferenceConverter
                .getColor(store, P_MESSAGEOCCURRENCESPECIFICATION_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference messageoccurrencespecification border color.
     * 
     * @param store
     *            the store
     * @return the preference messageoccurrencespecification border color
     */
    public static RGB getPreferenceMessageOccurrenceSpecificationBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_MESSAGEOCCURRENCESPECIFICATION_BORDERCOLOR);
    }

    /**
     * Gets the preference messageoccurrencespecification font color.
     * 
     * @param store
     *            the store
     * @return the preference messageoccurrencespecification font color
     */
    public static RGB getPreferenceMessageOccurrenceSpecificationFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_MESSAGEOCCURRENCESPECIFICATION_FONTCOLOR);
    }

    /**
     * Gets the preference messageoccurrencespecification font.
     * 
     * @param store
     *            the store
     * @return the preference messageoccurrencespecification font
     */
    public static FontData[] getPreferenceMessageOccurrenceSpecificationFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_MESSAGEOCCURRENCESPECIFICATION_FONT);
    }

    /**
     * Gets the preference executionoccurrencespecification background color.
     * 
     * @param store
     *            the store
     * @return the preference executionoccurrencespecification background color
     */
    public static RGB getPreferenceExecutionOccurrenceSpecificationBackgroundColor(
            IPreferenceStore store) {
        return PreferenceConverter.getColor(store,
                P_EXECUTIONOCCURRENCESPECIFICATION_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference executionoccurrencespecification border color.
     * 
     * @param store
     *            the store
     * @return the preference executionoccurrencespecification border color
     */
    public static RGB getPreferenceExecutionOccurrenceSpecificationBorderColor(
            IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_EXECUTIONOCCURRENCESPECIFICATION_BORDERCOLOR);
    }

    /**
     * Gets the preference executionoccurrencespecification font color.
     * 
     * @param store
     *            the store
     * @return the preference executionoccurrencespecification font color
     */
    public static RGB getPreferenceExecutionOccurrenceSpecificationFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_EXECUTIONOCCURRENCESPECIFICATION_FONTCOLOR);
    }

    /**
     * Gets the preference executionoccurrencespecification font.
     * 
     * @param store
     *            the store
     * @return the preference executionoccurrencespecification font
     */
    public static FontData[] getPreferenceExecutionOccurrenceSpecificationFont(
            IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_EXECUTIONOCCURRENCESPECIFICATION_FONT);
    }

    /**
     * Gets the preference combinedfragment background color.
     * 
     * @param store
     *            the store
     * @return the preference combinedfragment background color
     */
    public static RGB getPreferenceCombinedFragmentBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_COMBINEDFRAGMENT_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference combinedfragment border color.
     * 
     * @param store
     *            the store
     * @return the preference combinedfragment border color
     */
    public static RGB getPreferenceCombinedFragmentBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_COMBINEDFRAGMENT_BORDERCOLOR);
    }

    /**
     * Gets the preference combinedfragment font color.
     * 
     * @param store
     *            the store
     * @return the preference combinedfragment font color
     */
    public static RGB getPreferenceCombinedFragmentFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_COMBINEDFRAGMENT_FONTCOLOR);
    }

    /**
     * Gets the preference combinedfragment font.
     * 
     * @param store
     *            the store
     * @return the preference combinedfragment font
     */
    public static FontData[] getPreferenceCombinedFragmentFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_COMBINEDFRAGMENT_FONT);
    }

    /**
     * Gets the preference continuation background color.
     * 
     * @param store
     *            the store
     * @return the preference continuation background color
     */
    public static RGB getPreferenceContinuationBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_CONTINUATION_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference continuation border color.
     * 
     * @param store
     *            the store
     * @return the preference continuation border color
     */
    public static RGB getPreferenceContinuationBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_CONTINUATION_BORDERCOLOR);
    }

    /**
     * Gets the preference continuation font color.
     * 
     * @param store
     *            the store
     * @return the preference continuation font color
     */
    public static RGB getPreferenceContinuationFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_CONTINUATION_FONTCOLOR);
    }

    /**
     * Gets the preference continuation font.
     * 
     * @param store
     *            the store
     * @return the preference continuation font
     */
    public static FontData[] getPreferenceContinuationFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_CONTINUATION_FONT);
    }

    /**
     * Gets the preference considerignorefragment background color.
     * 
     * @param store
     *            the store
     * @return the preference considerignorefragment background color
     */
    public static RGB getPreferenceConsiderIgnoreFragmentBackgroundColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_CONSIDERIGNOREFRAGMENT_BACKGROUNDCOLOR);
    }

    /**
     * Gets the preference considerignorefragment border color.
     * 
     * @param store
     *            the store
     * @return the preference considerignorefragment border color
     */
    public static RGB getPreferenceConsiderIgnoreFragmentBorderColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_CONSIDERIGNOREFRAGMENT_BORDERCOLOR);
    }

    /**
     * Gets the preference considerignorefragment font color.
     * 
     * @param store
     *            the store
     * @return the preference considerignorefragment font color
     */
    public static RGB getPreferenceConsiderIgnoreFragmentFontColor(IPreferenceStore store) {
        return PreferenceConverter.getColor(store, P_CONSIDERIGNOREFRAGMENT_FONTCOLOR);
    }

    /**
     * Gets the preference considerignorefragment font.
     * 
     * @param store
     *            the store
     * @return the preference considerignorefragment font
     */
    public static FontData[] getPreferenceConsiderIgnoreFragmentFont(IPreferenceStore store) {
        return PreferenceConverter.getFontDataArray(store, P_CONSIDERIGNOREFRAGMENT_FONT);
    }

    /**
     * Sets the default preferences.
     * 
     * @param store
     *            the store
     */
    public static void setDefaultPreferences(IPreferenceStore store) {
        // Interaction
        PreferenceConverter.setDefault(store, P_INTERACTION_BACKGROUNDCOLOR, PreferenceConstants
                .getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_INTERACTION_BORDERCOLOR, PreferenceConstants
                .getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_INTERACTION_FONTCOLOR, PreferenceConstants
                .getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_INTERACTION_FONT, new FontData("Arial", 10,
                SWT.BOLD));

        // InteractionFragment
        PreferenceConverter.setDefault(store, P_INTERACTIONFRAGMENT_BACKGROUNDCOLOR,
                PreferenceConstants.getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_INTERACTIONFRAGMENT_BORDERCOLOR,
                PreferenceConstants.getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_INTERACTIONFRAGMENT_FONTCOLOR, PreferenceConstants
                .getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_INTERACTIONFRAGMENT_FONT, new FontData("Arial", 10,
                SWT.BOLD));

        // Lifeline
        PreferenceConverter.setDefault(store, P_LIFELINE_BACKGROUNDCOLOR, PreferenceConstants
                .getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_LIFELINE_BORDERCOLOR, PreferenceConstants
                .getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_LIFELINE_FONTCOLOR, PreferenceConstants
                .getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_LIFELINE_FONT, new FontData("Arial", 10, SWT.BOLD));

        // InteractionUse
        PreferenceConverter.setDefault(store, P_INTERACTIONUSE_BACKGROUNDCOLOR, PreferenceConstants
                .getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_INTERACTIONUSE_BORDERCOLOR, PreferenceConstants
                .getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_INTERACTIONUSE_FONTCOLOR, PreferenceConstants
                .getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_INTERACTIONUSE_FONT, new FontData("Arial", 10,
                SWT.BOLD));

        // Gate
        PreferenceConverter.setDefault(store, P_GATE_BACKGROUNDCOLOR, PreferenceConstants
                .getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_GATE_BORDERCOLOR, PreferenceConstants
                .getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_GATE_FONTCOLOR, PreferenceConstants
                .getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_GATE_FONT, new FontData("Arial", 10, SWT.BOLD));

        // OccurrenceSpecification
        PreferenceConverter.setDefault(store, P_OCCURRENCESPECIFICATION_BACKGROUNDCOLOR,
                PreferenceConstants.getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_OCCURRENCESPECIFICATION_BORDERCOLOR,
                PreferenceConstants.getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_OCCURRENCESPECIFICATION_FONTCOLOR,
                PreferenceConstants.getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_OCCURRENCESPECIFICATION_FONT, new FontData("Arial",
                10, SWT.BOLD));

        // InteractionConstraint
        PreferenceConverter.setDefault(store, P_INTERACTIONCONSTRAINT_BACKGROUNDCOLOR,
                PreferenceConstants.getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_INTERACTIONCONSTRAINT_BORDERCOLOR,
                PreferenceConstants.getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_INTERACTIONCONSTRAINT_FONTCOLOR,
                PreferenceConstants.getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_INTERACTIONCONSTRAINT_FONT, new FontData("Arial",
                10, SWT.BOLD));

        // ExecutionSpecification
        PreferenceConverter.setDefault(store, P_EXECUTIONSPECIFICATION_BACKGROUNDCOLOR,
                PreferenceConstants.getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_EXECUTIONSPECIFICATION_BORDERCOLOR,
                PreferenceConstants.getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_EXECUTIONSPECIFICATION_FONTCOLOR,
                PreferenceConstants.getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_EXECUTIONSPECIFICATION_FONT, new FontData("Arial",
                10, SWT.BOLD));

        // StateInvariant
        PreferenceConverter.setDefault(store, P_STATEINVARIANT_BACKGROUNDCOLOR, PreferenceConstants
                .getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_STATEINVARIANT_BORDERCOLOR, PreferenceConstants
                .getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_STATEINVARIANT_FONTCOLOR, PreferenceConstants
                .getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_STATEINVARIANT_FONT, new FontData("Arial", 10,
                SWT.BOLD));

        // MessageOccurrenceSpecification
        PreferenceConverter.setDefault(store, P_MESSAGEOCCURRENCESPECIFICATION_BACKGROUNDCOLOR,
                PreferenceConstants.getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_MESSAGEOCCURRENCESPECIFICATION_BORDERCOLOR,
                PreferenceConstants.getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_MESSAGEOCCURRENCESPECIFICATION_FONTCOLOR,
                PreferenceConstants.getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_MESSAGEOCCURRENCESPECIFICATION_FONT, new FontData(
                "Arial", 10, SWT.BOLD));

        // ExecutionOccurrenceSpecification
        PreferenceConverter.setDefault(store, P_EXECUTIONOCCURRENCESPECIFICATION_BACKGROUNDCOLOR,
                PreferenceConstants.getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_EXECUTIONOCCURRENCESPECIFICATION_BORDERCOLOR,
                PreferenceConstants.getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_EXECUTIONOCCURRENCESPECIFICATION_FONTCOLOR,
                PreferenceConstants.getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_EXECUTIONOCCURRENCESPECIFICATION_FONT,
                new FontData("Arial", 10, SWT.BOLD));

        // CombinedFragment
        PreferenceConverter.setDefault(store, P_COMBINEDFRAGMENT_BACKGROUNDCOLOR,
                PreferenceConstants.getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_COMBINEDFRAGMENT_BORDERCOLOR, PreferenceConstants
                .getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_COMBINEDFRAGMENT_FONTCOLOR, PreferenceConstants
                .getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_COMBINEDFRAGMENT_FONT, new FontData("Arial", 10,
                SWT.BOLD));

        // Continuation
        PreferenceConverter.setDefault(store, P_CONTINUATION_BACKGROUNDCOLOR, PreferenceConstants
                .getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_CONTINUATION_BORDERCOLOR, PreferenceConstants
                .getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_CONTINUATION_FONTCOLOR, PreferenceConstants
                .getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_CONTINUATION_FONT, new FontData("Arial", 10,
                SWT.BOLD));

        // ConsiderIgnoreFragment
        PreferenceConverter.setDefault(store, P_CONSIDERIGNOREFRAGMENT_BACKGROUNDCOLOR,
                PreferenceConstants.getPapyrusColorYellow());
        PreferenceConverter.setDefault(store, P_CONSIDERIGNOREFRAGMENT_BORDERCOLOR,
                PreferenceConstants.getPapyrusColorBrown());
        PreferenceConverter.setDefault(store, P_CONSIDERIGNOREFRAGMENT_FONTCOLOR,
                PreferenceConstants.getPapyrusColorBlack());
        PreferenceConverter.setDefault(store, P_CONSIDERIGNOREFRAGMENT_FONT, new FontData("Arial",
                10, SWT.BOLD));
    }
}